package com.laoli.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.laoli.dao.AdDao;
import com.laoli.model.PromotionAd;
import com.laoli.service.AdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 李
 * @Date: 2022/03/15/8:32
 * @Description:
 */
@Service
public class AdServiceImpl implements AdService {
    @Autowired
    private AdDao dao;
    @Override
    public List<PromotionAd> getAdBySpaceId(Integer sid) {
        QueryWrapper<PromotionAd> qw=new QueryWrapper<>();
        qw.eq("spaceId",sid);
        return dao.selectList(qw);
    }
}
